package com.itcast.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itcast.dao.LoginMapper;
import com.itcast.health.pojo.Member;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass = LoginService.class)
@Transactional
public class LoginServiceImpl implements LoginService {
    @Autowired
    LoginMapper loginMapper;

    @Override
    public Member findByTelephone(String telephone) {

        return loginMapper.findByTelephone(telephone);
    }

    @Override
    public void add(Member member) {
        loginMapper.add( member);
    }
}
